package com.songshuai.webapi.baseapi.dto.feign.request;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * @Author: lhx
 * @Date: 2018/12/26 19:08
 */
@Data
public class UserAddReqDto {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[0-9]{10}$",message = "手机号格式错误")
    private String mobile;//手机号

    @NotBlank(message = "用户名不能为空")
    private String userName;//用户名

    @NotBlank(message = "姓名不能为空")
    private String trueName;//姓名

    @NotBlank(message = "密码不能为空")
    private String password;//密码

    private String remark;//备注

    @NotEmpty(message = "权限不能为空")
    private List<NavigationReqDto> Navigations;

}
